<?xml version="1.0" encoding="UTF-8"?>    
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:c="http://java.sun.com/jstl/core"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:util="http://java.sun.com/jsf/composite/components/util">
<ui:composition template="/WEB-INF/templates/platTemplate.xhtml">
	<ui:define name="content">
		<h:form id="manageBrandForm" prependId="false">
			<a4j:outputPanel id="toolbarPanel" ajaxRendered="true" layout="block" styleClass="toolbar">
				<div class="tdiv firstdiv">
					<a4j:commandLink action="#{manageBrandPage.preCreateAction}" value="" event="click" execute="@this" render="mainManageBrandPanel" styleClass="btns">
						<f:verbatim>
							<span class="btn_l">&nbsp;</span>
							<span class="btn_txt">#{message['operate.add.display']}</span>
							<span class="btn_r">&nbsp;</span>
						</f:verbatim>
					</a4j:commandLink>
				</div>
			</a4j:outputPanel>
			<div class="normalContent">
				<a4j:outputPanel id="searchPanel" layout="block">
						<div class="add_detail_box">
							<p>
								<span>
								<h:outputLabel value="#{message['brand.brandno.display'] }:" styleClass="normallabel"></h:outputLabel>
								<h:inputText value="#{manageBrandPage.page.param.brandNo}" styleClass="normal_input_text"><f:ajax event="blur" execute="@this" render="@this"></f:ajax></h:inputText>
								</span>
								<span>
								<h:outputLabel value="#{message['brand.brandname.display'] }:" styleClass="normallabel"></h:outputLabel>
								<h:inputText value="#{manageBrandPage.page.param.brandName}" styleClass="normal_input_text"><f:ajax event="blur" execute="@this" render="@this"></f:ajax></h:inputText>
								</span>
								<span>
								<h:outputLabel value="#{message['brand.speelingname.display'] }:" styleClass="normallabel"></h:outputLabel>
								<h:inputText value="#{manageBrandPage.page.param.speelingName}" styleClass="normal_input_text"><f:ajax event="blur" execute="@this" render="@this"></f:ajax></h:inputText>
								</span>
								<span>
								<h:outputLabel value="#{message['brand.englishname.display'] }:" styleClass="normallabel"></h:outputLabel>
								<h:inputText value="#{manageBrandPage.page.param.englishName}" styleClass="normal_input_text"><f:ajax event="blur" execute="@this" render="@this"></f:ajax></h:inputText>
								</span>
							</p>
							
								<a4j:commandLink action="#{manageBrandPage.searchPageAction}" value="" event="click" execute="@this" render="searchPanel pageDataPanel mainManageBrandPanel" styleClass="btn"><f:verbatim><span>#{message['button.search.display'] }</span></f:verbatim></a4j:commandLink>

						</div>
				</a4j:outputPanel>
				<a4j:outputPanel id="pageDataPanel" layout="block">
					<div class="scrollDivGrid">
						<div class="scrollDivGridInner">
					    	<ul id="brandUlHeader" class="headline">
					    		<li style="width:110px"><span>#{message['operate.display'] }</span></li>
							    <li style="width:80px"><span>#{message['brand.brandno.display'] }</span></li>
								<li style="width:150px"><span>#{message['brand.brandname.display'] }</span></li>
				       			<li style="width:150px"><span>#{message['brand.speelingname.display'] }</span></li>
				    			<li style="width:150px"><span>#{message['brand.englishname.display'] }</span></li>
							    <li style="width:150px;"><span>#{message['brand.description.display'] }</span></li>
							    <li style="width:200px;"><span>#{message['brand.keywords.display'] }</span></li>
							    <li style="width:100px;" class="last"><span>#{message['brand.sort.display'] }</span></li>
							</ul>
							<a4j:repeat value="#{manageBrandPage.page.page.result}" var="brand" rowKeyVar="rowNo">
								<ul id="brandUl#{rowNo}" class="">
									<li style="width:110px">
										<a4j:commandLink action="#{manageBrandPage.viewAction }" value="#{message['operate.view.display'] }" event="click" execute="@this" render="pageDataPanel mainManageBrandPanel"><f:param name="objId" value="#{brand.id }"></f:param></a4j:commandLink>
										<f:verbatim>&nbsp;&nbsp;</f:verbatim>
										<a4j:commandLink action="#{manageBrandPage.editAction }" value="#{message['operate.edit.display'] }" event="click" execute="@this" render="pageDataPanel mainManageBrandPanel"><f:param name="objId" value="#{brand.id }"></f:param></a4j:commandLink>
										<f:verbatim>&nbsp;&nbsp;</f:verbatim>
									</li>
									<li style="width:80px"><h:outputLabel value="#{brand.brandNo} "></h:outputLabel></li>
								    <li style="width:150px"><util:sexLabel sex="#{brand.brandName }"></util:sexLabel></li>
								    <li style="width:150px"><h:outputLabel value="#{brand.speelingName }"></h:outputLabel></li>
								    <li style="width:150px"><h:outputLabel value="#{brand.englishName }"></h:outputLabel></li>
								    <li style="width:150px;"><h:outputLabel value="#{brand.description }"></h:outputLabel></li>
								    <li style="width:200px;"><h:outputLabel value="#{brand.keywords }"></h:outputLabel></li>
								    <li style="width:100px;" class="last"><h:outputLabel value="#{brand.sort }"></h:outputLabel></li>
							  	</ul>
						  	</a4j:repeat>
						  	<script language="javascript">
								setUlLastBorder('brandUlHeader');
							</script>
						  	<a4j:outputPanel id="emptyDataPanel" rendered="#{empty manageBrandPage.page.page.result}" display="block">
						  		<span class="f13 fB">#{msgs['empty.data.display'] }</span>
						  	</a4j:outputPanel>
						</div>
					</div>
					<div id="d_p_list">
						<util:pageNavigation id="brandNav" pageData="#{manageBrandPage.page.page }" pageNoAction="#{manageBrandPage.selectPageNo }" prePageNoId="prePageNoBtnFootHead" prePageNoLabel="#{message['page.navigation.pre.display']}" renderId="pageDataPanel" nextPageNoId="nextPageNoBtnFootHead" nextPageNoLabel="#{message['page.navigation.next.display']}"></util:pageNavigation>
					</div>
				</a4j:outputPanel>
	         	<a4j:outputPanel id="mainManageBrandPanel" ajaxRendered="true" layout="block">
					<h:panelGrid columns="2" styleClass="normaltable" headerClass="tleft" columnClasses="percent10 tleft,percent90" rendered="#{'VIEW' eq manageBrandPage.action }">
			
						<f:facet name="header">
							<h:outputLabel value="#{message['brand.info.display'] }" styleClass="f14 fN"></h:outputLabel>
							[<a4j:commandLink action="#{manageBrandPage.viewToEditAction }" value="#{message['operate.edit.display'] }" event="click" execute="@this" render="mainManageBrandPanel"></a4j:commandLink>]
						</f:facet>
						
						<h:outputLabel value="#{message['brand.brandno.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:outputText value="#{manageBrandPage.view.brandNo }" styleClass="normal_output_text"></h:outputText>
						<h:outputLabel value="#{message['brand.brandname.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:outputLabel value="#{manageBrandPage.view.brandName }" styleClass="normal_output_text"></h:outputLabel>
						<h:outputLabel value="#{message['brand.speelingname.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:outputText value="#{manageBrandPage.view.speelingName }" styleClass="normal_output_text"></h:outputText>
						<h:outputLabel value="#{message['brand.englishname.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:outputText value="#{manageBrandPage.view.englishName }" styleClass="normal_output_text"></h:outputText>
						<h:outputLabel value="#{message['brand.url.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:outputText value="#{manageBrandPage.view.url }" styleClass="normal_output_text"></h:outputText>
						<h:outputLabel value="#{message['brand.description.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:outputText value="#{manageBrandPage.view.description }" styleClass="normal_output_text"></h:outputText>
						<h:outputLabel value="#{message['brand.logobigurl.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:outputText value="#{manageBrandPage.view.logoBigUrl }" styleClass="normal_output_text"></h:outputText>
						<h:outputLabel value="#{message['brand.logomiddleurl.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:outputText value="#{manageBrandPage.view.logoMiddleUrl }" styleClass="normal_output_text"></h:outputText>
						<h:outputLabel value="#{message['brand.logosmallurl.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:outputText value="#{manageBrandPage.view.logoSmallUrl }" styleClass="normal_output_text"></h:outputText>
						<h:outputLabel value="#{message['brand.logoleasturl.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:outputText value="#{manageBrandPage.view.logoLeastUrl }" styleClass="normal_output_text"></h:outputText>
						<h:outputLabel value="#{message['brand.advertimage.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:outputText value="#{manageBrandPage.view.advertImage }" styleClass="normal_output_text"></h:outputText>
						<h:outputLabel value="#{message['brand.keywords.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:outputText value="#{manageBrandPage.view.keywords }" styleClass="normal_output_text"></h:outputText>
						<h:outputLabel value="#{message['brand.isrecommend.display'] }:" styleClass="normallabel"></h:outputLabel>
						<util:whetherLabel whether="#{manageBrandPage.view.isRecommend }" style="" styleClass="normal_output_text"></util:whetherLabel>
						<h:outputLabel value="#{message['brand.isshow.display'] }:" styleClass="normallabel"></h:outputLabel>
						<util:whetherLabel whether="#{manageBrandPage.view.isShow }" style="" styleClass="normal_output_text"></util:whetherLabel>
						<h:outputLabel value="#{message['brand.isdelete.display'] }:" styleClass="normallabel"></h:outputLabel>
						<util:whetherLabel whether="#{manageBrandPage.view.isDelete }" style="" styleClass="normal_output_text"></util:whetherLabel>
						<h:outputLabel value="#{message['brand.isenabled.display'] }:" styleClass="normallabel"></h:outputLabel>
						<util:whetherLabel whether="#{manageBrandPage.view.isEnabled }" style="" styleClass="normal_output_text"></util:whetherLabel>
						<h:outputLabel value="#{message['brand.metatitle.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:outputText value="#{manageBrandPage.view.metaTitle }" styleClass="normal_output_text"></h:outputText>
						<h:outputLabel value="#{message['brand.metadescription.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:outputText value="#{manageBrandPage.view.metaDescription }" styleClass="normal_output_text"></h:outputText>
						<h:outputLabel value="#{message['brand.seokeyword.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:outputText value="#{manageBrandPage.view.seoKeyword }" styleClass="normal_output_text"></h:outputText>
						<h:outputLabel value="#{message['brand.seotitle.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:outputText value="#{manageBrandPage.view.seoTitle }" styleClass="normal_output_text"></h:outputText>
						<h:outputLabel value="#{message['brand.seodescription.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:outputText value="#{manageBrandPage.view.seoDescription }" styleClass="normal_output_text"></h:outputText>
						
					</h:panelGrid>
					
					<h:panelGrid columns="2" styleClass="normaltable" headerClass="tleft" footerClass="tcenter" columnClasses="percent10 tleft,percent90" rendered="#{('EDIT' eq manageBrandPage.action) or ('NEW' eq manageBrandPage.action) }">
						
						<f:facet name="header">
							<h:outputLabel value="#{message['brand.info.display'] }" styleClass="f14 fN"></h:outputLabel>
						</f:facet>
						
						<h:outputLabel value="#{message['brand.brandno.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:inputText value="#{manageBrandPage.edit.brandNo }" maxlength="100" styleClass="normal_input_text"><f:ajax event="blur" execute="@this" render="@this"></f:ajax></h:inputText>
						<h:outputLabel value="#{message['brand.brandname.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:inputText value="#{manageBrandPage.edit.brandName }" maxlength="100" styleClass="normal_input_text"><f:ajax event="blur" execute="@this" render="@this"></f:ajax></h:inputText>
						<h:outputLabel value="#{message['brand.speelingname.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:inputText value="#{manageBrandPage.edit.speelingName }" maxlength="100" styleClass="normal_input_text"><f:ajax event="blur" execute="@this" render="@this"></f:ajax></h:inputText>
						<h:outputLabel value="#{message['brand.englishname.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:inputText value="#{manageBrandPage.edit.englishName }" maxlength="100" styleClass="normal_input_text"><f:ajax event="blur" execute="@this" render="@this"></f:ajax></h:inputText>
						<h:outputLabel value="#{message['brand.url.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:inputText value="#{manageBrandPage.edit.url }" maxlength="100" styleClass="normal_input_text"><f:ajax event="blur" execute="@this" render="@this"></f:ajax></h:inputText>
						<h:outputLabel value="#{message['brand.description.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:inputText value="#{manageBrandPage.edit.description }" maxlength="100" styleClass="normal_input_text"><f:ajax event="blur" execute="@this" render="@this"></f:ajax></h:inputText>
						<h:outputLabel value="#{message['brand.logobigurl.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:inputText value="#{manageBrandPage.edit.logoBigUrl }" maxlength="100" styleClass="normal_input_text"><f:ajax event="blur" execute="@this" render="@this"></f:ajax></h:inputText>
						<h:outputLabel value="#{message['brand.logomiddleurl.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:inputText value="#{manageBrandPage.edit.logoMiddleUrl }" maxlength="100" styleClass="normal_input_text"><f:ajax event="blur" execute="@this" render="@this"></f:ajax></h:inputText>
						<h:outputLabel value="#{message['brand.logosmallurl.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:inputText value="#{manageBrandPage.edit.logoSmallUrl }" maxlength="100" styleClass="normal_input_text"><f:ajax event="blur" execute="@this" render="@this"></f:ajax></h:inputText>
						<h:outputLabel value="#{message['brand.logoleasturl.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:inputText value="#{manageBrandPage.edit.logoLeastUrl}" maxlength="100" styleClass="normal_input_text"><f:ajax event="blur" execute="@this" render="@this"></f:ajax></h:inputText>
						<h:outputLabel value="#{message['brand.advertimage.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:inputText value="#{manageBrandPage.edit.advertImage}" maxlength="100" styleClass="normal_input_text"><f:ajax event="blur" execute="@this" render="@this"></f:ajax></h:inputText>
						<h:outputLabel value="#{message['brand.keywords.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:inputText value="#{manageBrandPage.edit.keywords}" maxlength="100" styleClass="normal_input_text"><f:ajax event="blur" execute="@this" render="@this"></f:ajax></h:inputText>
						<h:outputLabel value="#{message['brand.isrecommend.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:inputText value="#{manageBrandPage.edit.isRecommend}" maxlength="100" styleClass="normal_input_text"><f:ajax event="blur" execute="@this" render="@this"></f:ajax></h:inputText>
						<h:outputLabel value="#{message['brand.isshow.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:inputText value="#{manageBrandPage.edit.isShow}" maxlength="100" styleClass="normal_input_text"><f:ajax event="blur" execute="@this" render="@this"></f:ajax></h:inputText>
						<h:outputLabel value="#{message['brand.isdelete.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:inputText value="#{manageBrandPage.edit.isDelete}" maxlength="100" styleClass="normal_input_text"><f:ajax event="blur" execute="@this" render="@this"></f:ajax></h:inputText>
						<h:outputLabel value="#{message['brand.isenabled.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:inputText value="#{manageBrandPage.edit.isEnabled}" maxlength="100" styleClass="normal_input_text"><f:ajax event="blur" execute="@this" render="@this"></f:ajax></h:inputText>
						<h:outputLabel value="#{message['brand.metatitle.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:inputText value="#{manageBrandPage.edit.metaTitle}" maxlength="100" styleClass="normal_input_text"><f:ajax event="blur" execute="@this" render="@this"></f:ajax></h:inputText>
						<h:outputLabel value="#{message['brand.metadescription.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:inputText value="#{manageBrandPage.edit.metaDescription}" maxlength="100" styleClass="normal_input_text"><f:ajax event="blur" execute="@this" render="@this"></f:ajax></h:inputText>
						<h:outputLabel value="#{message['brand.seokeyword.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:inputText value="#{manageBrandPage.edit.seoKeyword}" maxlength="100" styleClass="normal_input_text"><f:ajax event="blur" execute="@this" render="@this"></f:ajax></h:inputText>
						<h:outputLabel value="#{message['brand.seotitle.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:inputText value="#{manageBrandPage.edit.seoTitle}" maxlength="100" styleClass="normal_input_text"><f:ajax event="blur" execute="@this" render="@this"></f:ajax></h:inputText>
						<h:outputLabel value="#{message['brand.seodescription.display'] }:" styleClass="normallabel"></h:outputLabel>
						<h:inputText value="#{manageBrandPage.edit.seoDescription}" maxlength="100" styleClass="normal_input_text"><f:ajax event="blur" execute="@this" render="@this"></f:ajax></h:inputText>
						<h:outputLabel value=""></h:outputLabel>
						<h:panelGroup>
							<a4j:commandLink action="#{manageBrandPage.updateAction}" value="" event="click" execute="@this" oncomplete="javascript:refreshPageAction();" rendered="#{'EDIT' eq manageBrandPage.action }" styleClass="btn"><f:verbatim><span>#{message['button.update.display'] }</span></f:verbatim></a4j:commandLink>
							<a4j:commandLink action="#{manageBrandPage.saveAction}" value="" event="click" execute="@this" oncomplete="javascript:refreshPageAction();" rendered="#{'NEW' eq manageBrandPage.action }" styleClass="btn"><f:verbatim><span>#{message['button.save.display'] }</span></f:verbatim></a4j:commandLink>
						</h:panelGroup>
						<f:facet name="footer">
							<util:messages errorMessages="#{manageBrandPage.errorMessages}"></util:messages>
						</f:facet>
					</h:panelGrid>
					<a4j:jsFunction name="refreshPageAction" action="#{manageBrandPage.refreshPageAction }" render="mainManageBrandPanel pageDataPanel"></a4j:jsFunction>
				</a4j:outputPanel>
			</div>
         </h:form>
         <div style="clear:both;float:none" />
	</ui:define>
</ui:composition>
</html>

